package com.epam.parser;


import java.io.IOException;

import org.apache.log4j.Logger;

public class Main {

	private static Logger log = Logger.getLogger(Main.class.getName());

	public static void main(String[] args) throws IOException {
		
		log.info("\n" + "Program started");
		Comparator.sortByEntryCount("src/main/resources/entries.properties", "src/main/resources/words.properties");
		Comparator.getEntriesInText(Text.readTextFromFile("src/main/resources/book.txt"), "src/main/resources/words.properties");
		Comparator.getEntriesInSentences(Text.readTextFromFile("src/main/resources/book.txt"), "src/main/resources/words.properties");
		//c.getEntriesInText(Text.readTextFromFile("src/main/resources/book.txt"), "src/main/resources/words.properties");
		log.info("\n" + "Program finished");
	}
	

}
